#ifndef SHURU_H
#define SHURU_H
#include<string>
#include<iostream>
#include<fstream>
using namespace std;
#include "student.h"
#include "car.h"
#include "xinxi.h"
#define MERBER 10;
void Shuru1(){
    int n;
    n=MERBER;
    while(n!=0)
    {
        string name,id;
        cout<<"请输入学生姓名："<<endl;
        cin>>name;
        cout<<"请输入学生学号："<<endl;
        cin>>id;
        Student s;
        s.set(id,name);
        s.save();
        n--;
    }
}
void Shuru2()
{
    int n;
    n=MERBER;
    while(!cin.eof())
    {
        string car_id;
        cout<<"请输入小车编号："<<endl;
        getline(cin,car_id);
        Car_id c;
        c.set(car_id);
        c.save();

        string  bianhao;
        cout<<"请输入底盘编号："<<endl;
        getline(cin,bianhao);
        string xinghao;
        cout<<"请输入底盘型号："<<endl;
        getline(cin,xinghao);
        string zouju;
        cout<<"请输入底盘轴距："<<endl;
        getline(cin,zouju);
        string lunju;
        cout<<"请输入底盘轮距："<<endl;
        getline(cin,lunju);
        string jianxi;
        cout<<"请输入最小离地间隙："<<endl;
        getline(cin,jianxi);
        string minbanjing;
        cout<<"请输入最小转弯半径："<<endl;
        getline(cin,minbanjing);
        string qudong;
        cout<<"请输入驱动形式："<<endl;
        getline(cin,qudong);
        string xingcheng;
        cout<<"请输入最大行程:"<<endl;
        getline(cin,xingcheng);
        string luntai;
        cout<<"请输入轮胎个数："<<endl;
        getline(cin,luntai);
        string luntaixh;
        cout<<"请输入轮胎型号："<<endl;
        getline(cin,luntaixh);
        string chicun;
        cout<<"请输入轮胎尺寸："<<endl;
        getline(cin,chicun);
        Dipan d;
        d.set(bianhao,xinghao,zouju,lunju,jianxi,minbanjing,qudong,xingcheng,luntai,luntaixh,chicun);
        d.save();

        string agxxinghao;
        cout<<"请输入AGX型号："<<endl;
        getline(cin,agxxinghao);
        string AI;
        cout<<"请输入AGX的AI："<<endl;
        getline(cin,AI);
        string CUDA;
        cout<<"请输入CUDA核心："<<endl;
        getline(cin,CUDA);
        string CORE;
        cout<<"请输入Tensor CORE："<<endl;
        getline(cin,CORE);
        string xincun;
        cout<<"请输入AGX的显存："<<endl;
        getline(cin,xincun);
        string chucun;
        cout<<"请输入AGX的储存："<<endl;
        getline(cin,chucun);
        AXG a;
        a.set(agxxinghao,AI,CUDA,CORE,xincun,chucun);
        a.save();
        
        
        string xxtxh;
        cout<<"请输入双目摄像头的型号："<<endl;
        getline(cin,xxtxh);
        string xxt;
        cout<<"请输入摄像头："<<endl;
        getline(cin,xxt);
        string RGBZ;
        cout<<"请输入摄像头RGB帧分辨率："<<endl;
        getline(cin,RGBZ);
        string RGB;
        cout<<"请输入摄像头RGB帧率："<<endl;
        getline(cin,RGB);
        string FOV;
        cout<<"请输入摄像头的FOV："<<endl;
        getline(cin,FOV);
        string zhenlv;
        cout<<"请输入摄像头的深度帧率："<<endl;
        getline(cin,zhenlv);
        Camera ca;
        ca.set(xxtxh,xxt,RGBZ,RGB,FOV,zhenlv);
        ca.save();



        string jgxh;
        cout<<"请输入激光雷达的型号："<<endl;
        getline(cin,jgxh);
        string tds;
        cout<<"请输入激光雷达的通道数："<<endl;
        getline(cin,tds);
        string csfw;
        cout<<"请输入激光雷达测试范围："<<endl;
        getline(cin,csfw);
        string gh;
        cout<<"请输入激光雷达的功耗："<<endl;
        getline(cin,gh);
        Lidar l;
        l.set(jgxh,tds,csfw,gh);
        l.save();


        string tlyxh;
        cout<<"请输入9轴陀螺仪型号："<<endl;
        getline(cin,tlyxh);
        string cj;
        cout<<"请输入9轴陀螺仪的厂家："<<endl;
        getline(cin,cj);
        Gyroscope g;
        g.set(tlyxh,cj);
        g.save();


        string xspcc;
        cout<<"请输入液晶显示屏尺寸："<<endl;
        getline(cin,xspcc);
        string xspxh;
        cout<<"请输入液晶显示屏型号："<<endl;
        getline(cin,xspxh);
        Screen sc;
        sc.set(xspcc,xspxh);
        sc.save();


        string dccs;
        cout<<"请输入电池模块的参数："<<endl;
        getline(cin,dccs);
        string dwgd;
        cout<<"请输入电池对外供电电压："<<endl;
        getline(cin,dwgd);
        string cdsc;
        cout<<"请输入电池充电时长："<<endl;
        getline(cin,cdsc);
        Battery b;
        b.set(dccs,dwgd,cdsc);
        b.save();
        n--;
    }

}
void Shuru3()
{
    int n;
    n=MERBER;
    while(!cin.eof())
    {
        string id,car_id;
        cout<<"请输入学生学号："<<endl;
        cin>>id;
        cout<<"请输入使用小车编号："<<endl;
        cin>>car_id;
        Xinxi x;
        x.set(id,car_id);
        x.save();
        n--;
    }
}
#endif